package com.saihai.jiankang.ufQjxgwh.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.saihai.jiankang.ufQjxgwh.mapper.UfQjxgwhMapper;
import com.saihai.jiankang.ufQjxgwh.domain.UfQjxgwh;
import com.saihai.jiankang.ufQjxgwh.service.IUfQjxgwhService;

/**
 * 后台字典Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-11
 */
@Service
public class UfQjxgwhServiceImpl implements IUfQjxgwhService 
{
    @Autowired
    private UfQjxgwhMapper ufQjxgwhMapper;

    /**
     * 查询后台字典
     * 
     * @param id 后台字典主键
     * @return 后台字典
     */
    @Override
    public UfQjxgwh selectUfQjxgwhById(Long id)
    {
        return ufQjxgwhMapper.selectUfQjxgwhById(id);
    }

    /**
     * 查询后台字典列表
     * 
     * @param ufQjxgwh 后台字典
     * @return 后台字典
     */
    @Override
    public List<UfQjxgwh> selectUfQjxgwhList(UfQjxgwh ufQjxgwh)
    {
        return ufQjxgwhMapper.selectUfQjxgwhList(ufQjxgwh);
    }

    /**
     * 新增后台字典
     * 
     * @param ufQjxgwh 后台字典
     * @return 结果
     */
    @Override
    public int insertUfQjxgwh(UfQjxgwh ufQjxgwh)
    {
        return ufQjxgwhMapper.insertUfQjxgwh(ufQjxgwh);
    }

    /**
     * 修改后台字典
     * 
     * @param ufQjxgwh 后台字典
     * @return 结果
     */
    @Override
    public int updateUfQjxgwh(UfQjxgwh ufQjxgwh)
    {
        return ufQjxgwhMapper.updateUfQjxgwh(ufQjxgwh);
    }

    /**
     * 批量删除后台字典
     * 
     * @param ids 需要删除的后台字典主键
     * @return 结果
     */
    @Override
    public int deleteUfQjxgwhByIds(Long[] ids)
    {
        return ufQjxgwhMapper.deleteUfQjxgwhByIds(ids);
    }

    /**
     * 删除后台字典信息
     * 
     * @param id 后台字典主键
     * @return 结果
     */
    @Override
    public int deleteUfQjxgwhById(Long id)
    {
        return ufQjxgwhMapper.deleteUfQjxgwhById(id);
    }
}
